package othello.server.controller;

import java.util.logging.Logger;

import org.slim3.controller.Controller;
import org.slim3.controller.Navigation;

import othello.client.service.Lounge;
import othello.server.service.LoungeImpl;

public class LoungeController extends Controller {

    private static final Lounge SERVICE = new LoungeImpl();

    private static final Logger LOGGER =
        Logger.getLogger(LoungeController.class.getName());

    @Override
    public Navigation run() throws Exception {
        LOGGER.entering(this.getClass().getName(), "run");

        requestScope("boardId", SERVICE
            .entry(this.request.getSession().getId()));
        
        LOGGER.exiting(this.getClass().getName(), "run");
        return forward("lounge.jsp");
    }
}
